{% extends 'website/base.html' %}

{% block title %}CCRadio - Album: {{ album.artist.name }} - {{ album.title }}{% endblock %}

{% block page %}
    <div id="album_body">
        <h1>{{ album.artist.name }}</h1>
        <h2>{{ album.title }}</h2>
        <br>
        {% if member %}
            <a href="{% url 'song_add' artist_handle=album.artist.handle album_slug=album.slug %}">
                Add Song
            </a>
            <br>
        {% endif %}
        {% if songs %}
            <ul>
                {% for song in songs %}
                    <li>{{song.title }}</li>
                {% endfor %}
            </ul>
        {% else %}
            <h4>No songs uploaded for this album yet.</h4>
        {% endif %}
    </div>
{% endblock %}
